<?php 
  
class Hoidap_Component_Block_Cauhoinoibat extends Phpfox_Component 
{     
    public function process() 
    { 
		$parames['type'] ="noibat";
		$parames['limit'] =5;
		$listcauhoi = Phpfox::getService('hoidap.category')->selectListCauHoi($parames); 
		$this->template()->assign('listcauhoi', $listcauhoi);  
		
				// echo "<pre>";
		// print_r($listcauhoi);
		// echo "</pre>";
		


       $this->template()->assign(array( 
                'sHeader' => 'Câu hỏi nổi bật', 
                'aFooter' => array( 
                  
                ), 
            ) 
        ); 
     
         
        return 'block'; 

    } 
} 
  
?> 
